﻿Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Web.Script.Services

Namespace MyWebservice.Chart.Google

    <ScriptService()> _
    <WebService(Namespace:="http://localhost")> _
    Public Class GoogleChart
        Inherits System.Web.Services.WebService

        '<WebMethod()> _
        'Public Function Gdata(n As Integer) As WebUI.Chart.Google.DataTable
        '    Dim db = mDB.GetDB
        '    Dim q = db.GetQuery

        '    'Dim data = q.From("hashtag").Join("account_hashtag", "hashtag_id", "hashtag.id").Limit(5).SetSelect("hashTag,post_count").ToDataTable

        '    Dim dt = q.From("Hashtag").
        '        Join("Account_Hashtag", "Hashtag_ID", "ID").
        '        Where("Account_ID", "=", 0).
        '        OrderBy("Follower_Post_Count desc").
        '        Limit(n).SetSelect("hashtag", "Follower_Post_Count").ToDataTable

        '    Return New WebUI.Chart.Google.DataTable(dt)


        'End Function

    End Class
End Namespace
